package com.diy.excelsql.model.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author lgf
 * @since 2018-11-17
 */
@Data
@ToString
public class TFhlCommonCardBinInfo extends Model<TFhlCommonCardBinInfo> {

    private static final long serialVersionUID = 1L;

    @TableId("ID")
    private Long id;

    /**
     * 发卡行机构代码
     */
    @TableField("CARD_ISSUER_CODE")
    private String cardIssuerCode;

    /**
     * 发卡行机构名称
     */
    @TableField("CARD_ISSUER_NAME")
    private String cardIssuerName;

    /**
     * 卡名
     */
    @TableField("CARD_NAME")
    private String cardName;

    /**
     * 主账号长度
     */
    @TableField("CARD_LENGTH")
    private Integer cardLength;

    /**
     * 发卡行标识
     */
    @TableField("CARD_BIN")
    private String cardBin;

    /**
     * 发卡行标识 长度
     */
    @TableField("CARD_BIN_LENGTH")
    private Integer cardBinLength;

    /**
     * 卡种,0借记卡 1贷记卡 2预付费卡 3准贷记卡
     */
    @TableField("CARD_TYPE")
    private Long cardType;

    @TableField("CARD_START")
    private String cardStart;

    @TableField("CARD_END")
    private String cardEnd;

    @TableField("CREATE_DATE")
    private LocalDateTime createDate;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
